3.1.96 \(\int \log (\frac {c (b+a x)^2}{x^2}) \, dx\) [96]

Optimal. Leaf size=28 \[ \frac {2 b \log (b+a x)}{a}+x \log \left (\frac {c (b+a x)^2}{x^2}\right ) \]

[Out]

2*b*ln(a*x+b)/a+x*ln(c*(a*x+b)^2/x^2)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2536, 31} \begin {gather*} x \log \left (\frac {c (a x+b)^2}{x^2}\right )+\frac {2 b \log (a x+b)}{a} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Log[(c*(b + a*x)^2)/x^2],x]

[Out]

(2*b*Log[b + a*x])/a + x*Log[(c*(b + a*x)^2)/x^2]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2536

Int[((A_.) + Log[(e_.)*((a_.) + (b_.)*(x_))^(n_.)*((c_.) + (d_.)*(x_))^(mn_)]*(B_.))^(p_.), x_Symbol] :> Simp[
(a + b*x)*((A + B*Log[e*((a + b*x)^n/(c + d*x)^n)])^p/b), x] - Dist[B*n*p*((b*c - a*d)/b), Int[(A + B*Log[e*((
a + b*x)^n/(c + d*x)^n)])^(p - 1)/(c + d*x), x], x] /; FreeQ[{a, b, c, d, e, A, B, n}, x] && EqQ[n + mn, 0] &&
 NeQ[b*c - a*d, 0] && IGtQ[p, 0]

Rubi steps

\begin {align*} \int \log \left (\frac {c (b+a x)^2}{x^2}\right ) \, dx &=x \log \left (\frac {c (b+a x)^2}{x^2}\right )+(2 b) \int \frac {1}{b+a x} \, dx\\ &=\frac {2 b \log (b+a x)}{a}+x \log \left (\frac {c (b+a x)^2}{x^2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 28, normalized size = 1.00 \begin {gather*} \frac {2 b \log (b+a x)}{a}+x \log \left (\frac {c (b+a x)^2}{x^2}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Log[(c*(b + a*x)^2)/x^2],x]

[Out]

(2*b*Log[b + a*x])/a + x*Log[(c*(b + a*x)^2)/x^2]

________________________________________________________________________________________

Maple [A]
time = 0.21, size = 41, normalized size = 1.46

method result size
risch \(\frac {2 b \ln \left (a x +b \right )}{a}+x \ln \left (\frac {c \left (a x +b \right )^{2}}{x^{2}}\right )\) \(29\)
derivativedivides \(x \ln \left (c \left (a +\frac {b}{x}\right )^{2}\right )-2 b \left (-\frac {\ln \left (a +\frac {b}{x}\right )}{a}+\frac {\ln \left (\frac {1}{x}\right )}{a}\right )\) \(41\)
default \(x \ln \left (c \left (a +\frac {b}{x}\right )^{2}\right )-2 b \left (-\frac {\ln \left (a +\frac {b}{x}\right )}{a}+\frac {\ln \left (\frac {1}{x}\right )}{a}\right )\) \(41\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*(a*x+b)^2/x^2),x,method=_RETURNVERBOSE)

[Out]

x*ln(c*(a+b/x)^2)-2*b*(-1/a*ln(a+b/x)+1/a*ln(1/x))

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 28, normalized size = 1.00 \begin {gather*} x \log \left (\frac {{\left (a x + b\right )}^{2} c}{x^{2}}\right ) + \frac {2 \, b \log \left (a x + b\right )}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(a*x+b)^2/x^2),x, algorithm="maxima")

[Out]

x*log((a*x + b)^2*c/x^2) + 2*b*log(a*x + b)/a

________________________________________________________________________________________

Fricas [A]
time = 0.32, size = 42, normalized size = 1.50 \begin {gather*} \frac {a x \log \left (\frac {a^{2} c x^{2} + 2 \, a b c x + b^{2} c}{x^{2}}\right ) + 2 \, b \log \left (a x + b\right )}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(a*x+b)^2/x^2),x, algorithm="fricas")

[Out]

(a*x*log((a^2*c*x^2 + 2*a*b*c*x + b^2*c)/x^2) + 2*b*log(a*x + b))/a

________________________________________________________________________________________

Sympy [A]
time = 0.05, size = 26, normalized size = 0.93 \begin {gather*} x \log {\left (\frac {c \left (a x + b\right )^{2}}{x^{2}} \right )} + \frac {2 b \log {\left (a x + b \right )}}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*(a*x+b)**2/x**2),x)

[Out]

x*log(c*(a*x + b)**2/x**2) + 2*b*log(a*x + b)/a

________________________________________________________________________________________

Giac [A]
time = 3.96, size = 29, normalized size = 1.04 \begin {gather*} x \log \left (\frac {{\left (a x + b\right )}^{2} c}{x^{2}}\right ) + \frac {2 \, b \log \left ({\left | a x + b \right |}\right )}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(a*x+b)^2/x^2),x, algorithm="giac")

[Out]

x*log((a*x + b)^2*c/x^2) + 2*b*log(abs(a*x + b))/a

________________________________________________________________________________________

Mupad [B]
time = 0.15, size = 28, normalized size = 1.00 \begin {gather*} x\,\ln \left (\frac {c\,{\left (b+a\,x\right )}^2}{x^2}\right )+\frac {2\,b\,\ln \left (b+a\,x\right )}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log((c*(b + a*x)^2)/x^2),x)

[Out]

x*log((c*(b + a*x)^2)/x^2) + (2*b*log(b + a*x))/a

________________________________________________________________________________________